javac *.java 
pause
rmic chatServerImp
pause 
start rmiregistry
java ServerApp